package com.test.practice.objectUtils.date;

import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.joda.time.LocalTime;

import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

public class HardcodedSystemClock implements SystemClock {

	private static final DateTime theDateTime = new DateTime(2009, 9, 6, 14, 30, 0, 0);

	public DateTime getDateTime() {

		return theDateTime;
	}

	public long getTimeInMillis() {
		return theDateTime.getMillis();
	}

	public LocalDate getLocalDate() {
		return theDateTime.toLocalDate();
	}

	public LocalTime getLocalTime() {
		return theDateTime.toLocalTime();
	}

	public Calendar getCalendar() {
		return theDateTime.toCalendar(Locale.getDefault());
	}

	public Date getDate() {
		return theDateTime.toDate();

	}

}
